package cn.senwill.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@TableName("t_stock")
public class Stock {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id; // 仓库ID
    @TableField("product_id")
    private Long productId; // 商品ID
    private int total; // 库存总数
    private int used; // 已用数量
    private int residue; // 剩余数量
}